import request from '../request'
// ------------------------
// 授权列表
export const list = (params = {}) => {
    return request({
        url: "/system/user/empowerList",
        method: "get",
        params: params,
        methodType: "jsonStr",
    });
}

// 更新授权账号
export const update = (data) => {
    var url = data.id ? "/system/user/updateEmpower" : "/system/user/addEmpower";
    return request({
        url: url,
        method: "post",
        data: data,
        methodType: "jsonStr",
    });
};

// 删除授权账号
export const del = (data) => {
    return request({
        url: `/system/user/delete`,
        method: "post",
        data: data,
        methodType: "jsonStr",
    });
};
